/**
 *
 */
package com.oceansoft.mobile.econsole.modules.advice.service;

import java.util.List;

import com.oceansoft.mobile.econsole.modules.advice.entity.Advice;
import com.oceansoft.mobile.econsole.modules.base.entity.Pager;
import com.oceansoft.mobile.econsole.modules.base.entity.Query;
import com.oceansoft.mobile.econsole.modules.base.entity.Result;
import com.oceansoft.mobile.econsole.modules.log.entity.AccessLog;

/**
 * 意见投诉Service
 *
 * @author jin.xu
 * @version 2014-08-06
 */
public interface IAdviceService {
    /**
     * 分页加载
     *
     * @param query
     * @return
     */
    public Pager<Advice> findAdviceByPage(Query query);

    /**
     * 根据主键查询Advice
     *
     * @param adviceId
     * @return
     */
    public Advice findAdviceById(int adviceId);

    /**
     * 删除意见投诉
     *
     * @param adviceId
     * @return
     */
    Result deleteAdviceById(int adviceId);

    /**
     * 新增意见投诉
     *
     * @param advice
     * @return
     */
    Result save(Advice advice);

    /**
     * 更新意见投诉
     *
     * @param advice
     * @return
     */
    Result update(Advice advice);
    
  Result pushBackInfo(Advice advice);

Result updateStatus(Advice advice);

List<Advice> loadExcel(Query query);
}